FileIsImage needs FileInfo extension so we need to check before adding as some web hosts have diabled it.