Added support for aspect ratios.