code: def get_item(self, path):
          
          if self.source_folder:
              item_path = '%s/%s/%s' % (
                      current_app.static_folder,
                      self.source_folder,
                      path.strip('/')
                  )
          else:
              item_path = '%s/%s' % (
                      current_app.static_folder,
                      path.strip('/')
                  )
  
          if os.path.isfile(item_path):
              try:
                  return Image.open(item_path)
              except IOError as err:
                  LOGGER.warning('File not found on path "%s" with error: %s' % (item_path, str(err)))
                  return False
          else:
              return False
docs: Get resource item
          :param path: string
          :return: PIL.Image