add width and height arguments to imageurl

Closes #1268.

TODO:
 - [ ] add docs