Image Class and associated changes

Added the image class and made required changes to config, database and
flickr
Added image class

First version of image class
moved image sizes and crop sizes to config

also removed photo object from cacheImage
made sure query returned data
removed test file