Fixed showImage bug