fixed imageCounter