else if (intImageHeight > y) {
                intAdjustedWidth = intAdjustedWidth * (y / intAdjustedHeight);
                intAdjustedHeight = y;
                if (intAdjustedWidth > x) {
                    intAdjustedHeight = intAdjustedHeight * (x / intAdjustedWidth);