PHP script (using GD) to generate avatar or skin from a Minecraft username