PNG format has a space for arbitrary metadata. Fireworks stored their proprietary save format inside this, and also rendered the file to flat PNG on save, meaning that you could preview fireworks files in anything that could read PNGs (although the file size would be huge).