Add new functions for working with ZOI polygons and image stretch.