add clipping support to drawing context
use clipping when rendering panels