def augment_image(img, rotate, rand_brightness_contrast):
    """
    Function for augmenting single image.
    :param img:                       image to be augmented
    :param rotate:                    rotation function
    :param rand_brightness_contrast:  brightness & contrast altering function
    :return:                          augmented image
    """
    new_img = img.copy()
    # alter image's brightness on ±0.3 and contrast on ±0.2
    new_img = rand_brightness_contrast(image=new_img)['image']
    new_img = rotate(image=new_img)['image']  # rotate image on ±20deg
    return new_img