mean color and image scaling