move methods from controller to model
Merge pull request #3 from jkgit/item_images

move methods from controller to model