Translation and Rotation of 2D image (geotiff) - rotating along Y axis same as rotating along Z axis

Hi,

I wish to transform (translate and rotate) a 2D image (geotiff) using the “Transforming” settings in the image’s properties. Rotation along the X-axis works well, however rotating along the Y axis results in a rotation along the Z axis. I attached a screen capture. The last transformation I need would tilt the image along y-axis, so it becomes parallel to the the black line.

Thank you!