added a minimum scale with keepAspectRatio