Trying to get width and height out of a buffer.