debugged gif/png visualization