Added FileUtils isImage method