Hmmm, not sure why process_image was failing, but this seems to work, even on production server.