To crop an image you need to set the properties width and height to create a crop area. Also, x and y can be specified to change the crop area origin.