def get_filtered_path(path_to_image, filename_key, storage):
containing_folder, filename = os.path.split(path_to_image)<EOL>filtered_filename = get_filtered_filename(filename, filename_key)<EOL>path_to_return = os.path.join(*[<EOL>containing_folder,<EOL>VERSATILEIMAGEFIELD_FILTERED_DIRNAME,<EOL>filtered_filename<EOL>])<EOL>path_to_return = path_to_return.replace('<STR_LIT:U+0020>', '<STR_LIT>')<EOL>return path_to_return<EOL>
Return the 'filtered path'