Fixed image-squashing bug on canvas.