Added possibility to omit width or height

When only width is provided, the height is aspect ratio. The same goes for height.