Do you mean keeping people from downloading the images (right-click save as) or hotlink protection, which is the code you posted?
If the later, check the main httpd.conf file for apache and make sure there is nothing overiding the .htaccess file you just created. http://help.directadmin.com/item.php?id=33