Adding support for custom drawing.