(1) Added getResolution () (2) changed variable names