How to render a part of page with phantomjs

Hello.
Here is an example, to render a part of page (some div)
// Read the Phantom webpage '#intro' element text using jQuery and "includeJs"
 
"use strict";
var page = require('webpage').create();
 
page.onConsoleMessage = function(msg) {
    console.log(msg);
};
 
page.open("http://somesite.com/somepage", function(status) {
    if (status === "success") {
        page.includeJs("http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js", function() {
            page.evaluate(function() {
                console.log("$(\".chartWrap\").html() -> " + $(".chartWrap").html());

            });

    var bb = page.evaluate(function () {.
                return document.getElementsByClassName("chartWrap")[0].getBoundingClientRect();.
            });
 
    page.clipRect = {
                top:    bb.top,
                left:   bb.left,
                width:  bb.width,
                height: bb.height
            };
 
    page.render('capture.png');
 
            phantom.exit(0);
        });
page.render('github.png');
    } else {
      phantom.exit(1);
    }
});