as_flask_image