wip: file parsing

works, until we get to the encapsulated pixeldata