fixed keepingAspectRatio bug