Rotation now also works for angles that are not 90 and 270