Plant Layer: move the drawing stuff to a external function to simplify code.
Fix bug  #411  -  Plant layer not implemented in Cairo