Fixed error when attempting to crop image  without specifying width and height