One more fix to image loading in canvas.