fixed error when uploading square images

if uploaded image is already a square the plugins returns an error since it can't be resized