Abstracted parsing to use the IDataInput interface with required "position" property instead of only ByteArray. Now the code supports either using ByteArray or FileStream which allows for parsing without having to load the full .psd into memory as a ByteArray first.