DEBUGGED: operative functions are rotation of 90  degrees (both clock- and counterclock-wise) and horizontal and vertical flip