Correcting the size of the thumbnail while uploading from the computer