Update showCaptcha.php: code optimisation and check if php gd extension is loaded

why use complex array functions when a simple string is enough :)