Add process_image utility