added options for width and height
Fixes #1