Made render width and height optional arguments, added documentation