printing logic evolved + saving to png