changed greyscaler to use emguCV