Fixed bug that shows duplicate image