Depth conversion now works also from PNM to PNGs
fixed bugs reported by @ph4m , thx dude :)