sloppy gif support (close #3)