What potential pitfalls should be considered when using mod_rewrite to disguise a gdlib image as a jpeg in PHP?

When using mod_rewrite to disguise a gdlib image as a jpeg in PHP, one potential pitfall to consider is that search engines may still recognize the true image format, leading to potential SEO issues. To solve this problem, you can use the PHP header function to explicitly set the content type to image/jpeg before outputting the image.

<?php
header('Content-Type: image/jpeg');

// Your gdlib image generation code here

// Output the image
imagejpeg($image);
imagedestroy($image);
?>