updated code to work with beta 3.2 - the rectangle added as the background is now automatically embedded in a shape group so the style property is accessible