Fixed some bugs in the image.