title: converting div containing image, to canvas gives a black and white image
body: <p>I wanted an image to be uploaded to a div inside a page and convert the whole div to an image..,</p>
  
  <p>The resulting images what I got is attested below.., its converting that color image to a b/w image.., and some saturation too..</p>
  
  <p>The original image after appending to a div</p>
  
  <p><a href="https://i.stack.imgur.com/IRYRQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IRYRQ.png" alt="enter image description here"></a></p>
  
  <p>After converting div to image(canvas)</p>
  
  <p><a href="https://i.stack.imgur.com/MUD4z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MUD4z.png" alt="enter image description here"></a></p>
  
  <p>I wanted an image to be uploaded to a div inside a page and convert the whole div to an image..,</p>