Replaced deprecated setFlipped method.