draw html5 bitmap surface