changed face direction of rectangle in ImagePainter