I receive images through a socket (from an external application, not mine). The problem is that I receive them, but some of them (30%) are like a messy puzzle. I attach an examp