Bug 824999 - Do not strip frames from animated PNG images

This changes the recompression script so that it will first invoke optipng non-destructively and if an APNG file is detected will not strip animated frames from it.