Resizing images and uploading thumbnail as well