def grayTo2D(np_image):
    """
    Reshaping np_image grayscale image to 2 dimension 
    e.g np_image with shape(x,y,1) will be reshaping to (x,y)
    """
    return np_image.reshape((np_image.shape[0], np_image.shape[1]))