make meanColor an optional, if an image is provided