works for converting from bit string to gray scale image