Added resolution modulus and width or height scale

Added the ability to select the resolution modulus and a scale mode based on width or height