added cacheing for image sizes