Lets actually test if file is image instead of using file name endings (Also converted to maven)