Smoother drawing with new class