if you decide to go this route, i can modify the decoder so that it can accept a 2D color array as argument and write the correct colors to it instead of writing out a PNG file. it wouldn't take more than an hour to do that i reckon.
post source:
i am satisfied