fixed gif animation flipped bug