Make more use of IsImageCompressed().