Adds functions to get surface width and height