fixing imagecore