Fixing some compiler errors with the tone mapping code. It runs, but does not seem to be mapping correctly.