function previewProfile(img, selection) {
    if (!selection.width || !selection.height)
        return;

    var scaleX = 150 / selection.width;