removed unused libraries and duplicate code in image illustration