Adding new API for custom drawing.