Removed Painter reference in html5 backend.