if not os.path.isfile(image_cached_path):
            ret['message'] = 'Invalid image path.'
            ret['out'] = False
            return ret