Created methods for uploading and resizing images.