Function parseLegacyImageData