Correct bugs in template file based on Ezzi online validation tool. Added
more options to derive bounding box.