Account for Ajax error case.
Compressing images with ImageOptim