rescue for process_image