resizing images to appropriate sizing.