modify rosimage.cpp and imagebright.cpp