def crop_image_array(input_image, x_range, y_range):
    """
    return a new image from specified pixel range of input image
    """
    return input_image[x_range[0] : x_range[1], y_range[0] : y_range[1]]