title: How to detect image is grayscale
body: <p>I need to determine whether the image is grayscale (contains only black, white or shades of grey) or contains any color.</p>
  
  <p>What libraries should I use for this?</p>