Fixed a bug with detecting that describing a contour rectangle is inside of it
Changed structure of UI, added colors count to UI