Improve the layouting algorithm(locate image by the ratio), prefer not to display a picture TOO big or TOO small