def image(self, image):
		if image.mode != '1':
			raise ValueError('Image must be in mode 1.')
		index = 0
		# Iterate through the 6 y axis rows.
		# Grab all the pixels from the image, faster than getpixel.
		pix = image.load()
		for row in range(6):
			# Iterate through all 83 x axis columns.
			for x in range(84):
				# Set the bits for the column of pixels at the current position.
				bits = 0
				# Don't use range here as it's a bit slow
				for bit in [0, 1, 2, 3, 4, 5, 6, 7]:
					bits = bits << 1
					bits |= 1 if pix[(x, row*ROWPIXELS+7-bit)] == 0 else 0
				# Update buffer byte and increment to next byte.
				self._buffer[index] = bits
				index += 1
Set buffer to value of Python Imaging Library image.  The image should
dataset/ETHPy150Open adafruit/Adafruit_Nokia_LCD/Adafruit_Nokia_LCD/PCD8544.py/PCD8544.image