Add method to draw a grayscale buffer