Bugfix for animated gif upgrade (saving width/height was broken)