Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^image\.png$ image.php [T=application/x-httpd-php,L]
RewriteRule ^image\.gif$ image.php [T=application/x-httpd-php,L]