change resolution update logic
Merge pull request #213 from licaiguo/update-resolution

change resolution update logic -- review #66