enable to use custom drawing function