Advanced use of the drawing API