Enhancement gif encoding