Update clearing of getImageData cache