fixed the image bug