Simplified dot rendering code