Apply a horizontal or vertical flip (mirror effect).
$layer->flip('horizontal');
$layer->flip('vertical');