improved the render loop and switched back to my pixelbuffer
but flake8 hates it