optimize cached image thumbnail size