filter sprite images by valid ext

to allow recursive directory structure
Merge pull request #1 from lightblade/master

Error when recursively search down directory tree