add resize method in gifplayer