change to ImageManager.cpp