Use cookie "xres=3" to get more photo in a request
Add "getThumbnail" method to photo model
Save cache for 12 hours