You can do referrer based check to prevent direct access to images. Place this rule in your root .htaccess:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !localhost [NC]
RewriteRule \.(jpe?g|gif|bmp|png)$ - [F,NC]
But remember that HTTP_REFERER
can be manipulated by clients.