First version of png decoder