Fixed a bug where image was shown a lot of times instead of just one