added FPS calculation and display