generated model for image