Loading an image and resizing it