This function get user defines max image height and width and display proportion image.