fix a few const correct issues in BaseImage.cpp