fixed the image display bug

fixes #48