How do I save an image file as a constant method?