v4: catch error caused by trying to crop an image smaller than allowed