Changed "int *" to pair<int,int> for function getResolution