Axxim/Minotar — pull request #26 by mrapple (2012-10-20 20:44:11+00:00)
Title: Fix helmets that are completely solid, but not completely white/transparent/black

I tested quite a few helmets and they all worked on my last PR, but it turns out that I missed a few side cases. For example, someone might have a helmet that is completely solid, but they still want displayed (example: https://minotar.net/skin/zappad)

The only way to fix this is to check every pixel (64 in total, 8x8). If the pixel is either white, completely transparent, or black, then ```n``` is incremented. After checking all pixels, if ```n``` is equal to 64, then we shouldn't display the helmet because it most likely isn't suppoused to be displayed.

Once again, tested on Ubuntu 12.04, PHP5, latest WideImage stable. I tested well over 50 avatars that were side cases last time and they're all fixed with this change.