added auto scaling based on height and width