Add count and cpt_count attributes to Node
Support image scaling