Use requestAnimationFrame.
- Minor FluidSolver enum usage fix.
- Renamed blackAndWhite to grayscale
- Minor optimization in grayscale check.