Additional public function to allow width,height, toolbar as parameters
Revised