limit to only .ppm and .jpg
satisfy issue#2: prefer nested namespace
Merge pull request #6 from tttor/gist-4

Gist 4