class ImageRect {

	public ImageRect(String dimensions) {
		if (dimensions == null) {
			throw error(BAD_REQUEST, "image_error_incomplete_crop_parameters");
		}
		String[] parts = dimensions.split(",");
		if (parts.length != 4) {
			throw error(BAD_REQUEST, "image_error_incomplete_crop_parameters");
		}
		this.startX = Integer.parseInt(parts[0]);
		this.startY = Integer.parseInt(parts[1]);
		this.width = Integer.parseInt(parts[2]);
		this.height = Integer.parseInt(parts[3]);
	}

	public  ImageRect(String dimensions);
	public  ImageRect(int startX, int startY, int height, int width);
	public  ImageRect();

}