Options +Indexes 
DirectoryIndex index.htm 

<FilesMatch "\.(gif|jpg|png)$"> 
   RewriteEngine On 
   RewriteCond %{REQUEST_FILENAME} -f 
   RewriteRule ^(.*)$ /watermark/_watermark.php [T=application/x-httpd-php,L,QSA] 
</FilesMatch> 