fix retina canvas redraw bug