I suppose you are a woman.
Wearing leggins will formally fulfill the prescriptions of traditional fiqh.
I understand the orders about clothing as a means for self-protection of the women. As such it's not absolute but it depends on the society you are living in. In a traditional Islamic society and in India your outfit with leggins will be seen provoking, ...
The simple answer is, No
Wearing a garment (cloth, hoodie etc..) with any image of a being with a soul is not permissible, but to remove such image (by painting, cutting, etc...) and then wear it, this is permissible.
And Allah knows best.
In terms of praying, the law is MAKRUH. Because the painting on the dress can disturb others like the picture on the back of the shirt, it will definitely disturb the person who is praying in the back.
Some scholars condemn it as HARAM. The Prophet S.A.W. curse those who paint pictures of creatures.
However, some scholars condemned it as MAKRUH. To avoid ...