Added convertion to gray scale