modify SOIL to get dimensions of loaded image