fix for changeImg function