Added raphael script, update drawPic functions

Added raphael script, update drawPic functions