Merge pull request #1 from bions/master

cleanup
allow jpeg only
Merge pull request #3 from sulram/master

jpg validator