This is not the final blending code, it will go through another refactor but it's an improvement from before.
Not everything is working yet, this requires more PSDWriter modifications.