Added gamma correction to tcl server.