Added contextID to the ImageManager