Keeping images out of apache log files

Recently, I needed to remove images from being logged by apache. This made the log files more manageable for a particular client. After a little research, along with trial and error, I finally came up with this block of code for my htaccess.conf:

SetEnvIf Request_URI \.gif image-request
SetEnvIf Request_URI \.jpg image-request
SetEnvIf Request_URI \.png image-request
CustomLog logs/access_log common env=!image-request