Fixed the painting
Added a fps counter on f8-button