Options -Indexes
<Files ~ '.*\..*'>
Order Allow,Deny
Deny from all
</Files>
<FilesMatch '\.(jpg|jpeg|jpe|png|gif)$'>
Order Deny,Allow
Allow from all
</FilesMatch>