FIXED - I had mixed up col and row and widthbuffer and heightbuffer.