Handle max height and width if specified.
Specify max height and width for better desktop display.