Plotting gamma curves in gui
Adapted gamma correction method

additionally it also returns Y_in and Y_out used for plotting the
intensity levels.