Error: setImageDimensions() requires both width and height for a crop.