The source lists as disliked wearing clothing containing pictures of animate beings and having an animate image above, behind, directly in front, or at the side in the stated cases.
It then gives exceptions: a very small image, an image with the head removed, or an image of something without a soul does not carry that same dislike in this rule.
The issue here is Makruh placement, not the false rule that “any image anywhere invalidates prayer.”