slight improvement to sprite generator