Near-lossless optimize of generation

Replace the very costly HSV conversion with a straight-up linear maximum
of RGB components as gray value.

Replace individual component setting in output with composite setRgbF
call, could be optimized more by inserting RGB8 directly.