fixed bug with extractGrey() + flash