Factor out FPS limit
Add legend interface
Add module to cabal file