Compress ByteTensors in-memory using libpng.