more implementation of iceimages.cpp