Adding binary file detection.
Replace ace with img when appropriate.