Updated opacity() method in sugar module