change ResolutionPolicy To RatioResolutionPolicy