Added basic functionality to detect avg color in shapes