add image parsing and printing