fixed the displaying of images