Added chart id and enhanced draw() method.

The uniqueness of id is not provided yet.
Changed chart's draw() method in order not to return an empty image.