vision based controller for rotating rectangles