Updated docstring of process_image