Created new domain class Photo. All logic associated with image upload and renderring on the page moved into Photo Service and Controller.