Working on fixing frame buffer resizing