Remove unused variables
Initial port, Animated GIFs do not work.