Is a gtx 1050 ti compatitable with my motherboard?

Yeah, no problem there.

If you don't wanna meddle with cable and your PSU, get a low profile GPU just as stated above. Just stick it right in the MOBO and you're good to go.

Also, if i may add. Please clean up that cooler and heatsink, your CPU won't thank you enough for that.
Cheers 🙂