added syncing of draw element. add toObject to fabric.Object prototype.