<Files ~ ".*">
Order Allow,Deny
Deny from All
</Files>

<Files ~ ".jpg$|.gif$|.png$">
Order Deny,Allow
Allow from All
</Files>