Added tools for calculate image proportion by max width and max height