add opacity option in Canvas constructor