added routines for blending and converting images between greyscale and
rgb. Created singleton for filtering.