How to rotate 2d picture on the screen

Joon Kim's icon

I'm trying to rotate a picture only with mouse operation. (not 3d rotation)
I almost achieved it using jit.gl.handle.
But the problem is that it rotates just within -90 ~ 90.
I need to do it -180 ~ 180.

rotate_2d.maxpat
Max Patch

Jean-Francois Charles's icon
Joon Kim's icon

Tried. But it's tricky to sync with mouse and tends to be out of control.
Thank you though.