Adds functions in surface and texture to get dimensions of image