I use PHP for creating a captcha image. It is showing the captcha at the time of loading. After completing the loading, it doesn't show the captcha image in Chrome. In other browsers, it is working fine. Why?
<?php
// Create an image from button.png
$image = imagecreatefrompng('button.png');
// Set the font colour
$colour = imagecolorallocate($image, 255, 120, 4);
// Set the font
$font = '../fonts/Anorexia.ttf';
// Set a random integer for the rotation between -15 and 15 degrees
$rotate = rand(-15, 15);
// Create an image using our original image and adding the detail
imagettftext($image, 18, $rotate, 18, 30, $colour, $font, $str);
// Output the image as a png
imagepng($image);
?>