updated register_image.php