improved png exporting and basic logging