Neater printing of imexam outputs