Fix isValidFile(File) to check the image's header only, able to accept
A7 patterns now.