add rotated rectangles in issue 156.js