If an image doesn't have exif data, don't try to rotate it.
Quick implementation of get_exif_datetime.