fixing checksum by reading binary
fixing gallery detection by making it case insensitive
Merge pull request #3 from john-peterson/dupe

fixing gallery detection by making it case insensitive