changing the size of images with different methods