added caching mechanism for photo data
cache size can be specified based on the device type
now fetches photo from cache when available; cache size depends on the photo format being requested, which is now a public property
now sets the photo view controller's photo format property for caching purposes
added classes for new caching mechanism