generate sample output as png