moved code within thumb script,

For transparency the code of imagecolorallocate had to be below the
imagecreatetruecolor function..