implement gif support via giflib - untested