Use PREVIOUS disposal in optimization when required.

Sometimes an image with local color tables can REQUIRE previous
disposal. (ASIS disposal would cause the next frame to require more
than 256 colors.) Detect this case and recover. Bryan Stillwell
report.
To version 1.73.