Corrected image displaying bug