name changes g to add_g_element and private image to image_. Problem in discrete functions remains. docs not yet updated.