Fix PatternEntity issue.
Add SpriteBatch template to the EntityManager.
Fix orientation support code.