Added an option to choose 1x or 2x scaling