public method crop(x as Int, y as Int, width as Int, height as Int) as Void:
Crops the image to the specified rectangle.