made PNG and JPG extensions case insensitive
Merge pull request #53 from phpmycoder/fix/case-insensitive-extensions

Made PNG and JPG extensions case insensitive