getRectangles and transmission viewer based on html5 canvas