Separate gray func from color func.
Resolve flower screen bug by numLines -> numPixels.
Merge branch 'graythreshold'
Update log.