Helper in sprite to set/get the opacity