Implemented new system to check if an image is a file.
No longer loads the image, just checks the file header.