Fixed bug for showing images