gif file support.

some gif files are not strictly follow 89a. DGifSlurp will return read head error or get record type error.
but the image still can display. so here should igron the error.

Signed-off-by: qijiang.guo <qijiang.guo@gmail.com>
Signed-off-by: qijiang.guo <qijiang.guo@gmail.com>
Merge pull request #58 from gqjjqg/master

support gif