**Problem Statement:**
You are given an `n x n` 2D `matrix` representing an image, rotate the image by 90 degrees (clockwise). You have to rotate the image in-place, which means you have to modify the input 2D matrix directly.
**Hint / Expected Approach:**
Transpose then reverse rows
**Edge Cases to Consider:**
- (1) 1×1 matrix
- (2) 2×2 matrix
- (3) Already rotated image