fix bug(the misalignment of image in canvas)

When using canvas, the image scoot down to left.