Updated scaling algorithm and added flexibility to presets mixin