implement setOpacity() (fixes #15)