Why does my ig pictures come out with little squares?

I have the iPhone 5c and when I took the picture and uploaded it it looked fine. I don't know what happened but I looked back at my photos and they had little squares in them why?

No one has any idea based on this.