added Contour functions for transforming between biological and pixel coordinate space