Fixed image duplication bug