Adding additional shape element functions, with raphael support