Lightweight sprite system with automatic atlas generation