added generatePhotoThumbnail; resize quality at image upload; resize thumb at gallery