Moved image data from template to handler function