Fixes problem where non-sprite files stop being playable

This fixes issue #15 and #16.  See issue #15 for more details.