Fixes confusing error for OSX.

Fixes the "Error: Could not decode image!" for OSX. Silly thing was trying to read the annoying .DS_Store files.