fixed imageData issues