Fixed drawing of large images on canvas.