PIL gif fix