Added support for aspect ratio