huangming : fit a variety of resolutions.