rename to prep_image; return time