Andreas Rueckert's patch to fix inline gif image support. Does not add compression. I verified that this does not alter the output pdf of the example fo files, and it compiles cleanly.