Added option to prevent scaling beyond 100%