Support rectangles and date format for canvas overlay