Added option to set the x and y cordinates before crop the image