adding resizing uploaded photos.