images: Moved some functionality into models.
images: Move legacy_s3_url into image model.