put in a condition for checking if image transform == transform of its contour
Updated comments/docstrings for functions, etc.