def cutout_subimage(image2d,
                    startx=0,
                    starty=0,
                    width=100,
                    height=200):
    """Cutout a subimage ot of a bigger image

    :param image2d: the original image
    :type image2d: NumPy.Array
    :param startx: startx, defaults to 0
    :type startx: int, optional
    :param starty: starty, defaults to 0
    :type starty: int, optional
    :param width: width, defaults to 100
    :type width: int, optional
    :param height: height, defaults to 200
    :type height: int, optional
    :return: image2d - subimage cutted out from original image2d
    :rtype: NumPy.Array
    """

    image2d = image2d[starty:starty + height, startx:startx + width]

    return image2d