def rectangle_crop_img(src, x_start, x_end, y_start, y_end):
    """
    Getting the parts needed in an image by clipping an image with a rectangle.
    Image ( 0, 0 ) points in the upper left corner of the image,
    x_start and x_end determine the height of the image,
    y_start and y_end determine the width of the image.
    """
    return src[x_start:x_end, y_start:y_end]