fix null canvas.Image bug