quartzdrawing helper