Update image_manager.cpp