def max_bits_to_hide(image, num_lsb):
    """Returns the number of bits we're able to hide in the image using
    num_lsb least significant bits."""
    return int(3 * image.size[0] * image.size[1] * num_lsb)
