GIF: fix redraw/animate issues

Change-Id: I65a5fd27bd5bbb8527b7db69b19c2ddea8dc1130
Merge remote-tracking branch 'koush/master' into cm-10.2