def newdims(img=None, resize=1, dims=None):
    """Returns new dimensions of an image array based on resize value"""
    if dims is None:
        if img is None:
            print('No img or dims provided..')
            return
        else:
            dims = img.shape[1], img.shape[0]
    width = int(dims[0] * resize)
    height = int(dims[1] * resize)
    return width, height
