Attach an image to a model.