resize photos to make them suitable for website displaying