Adding images and small segment.cpp modification.