Added possibility to omit width or height

When only width is provided, the height is aspect ratio. The same goes for height.
Merge pull request #3 from sanderbaas/master_opt_dim

Added possibility to omit width or height