height and width scaling. see #5
adding dynamic resizing. see #5