No, typically you want to serve your images from a file system and then set cache control headers via .htaccess with code such as:
Code:
<FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf|js|css|pdf|txt)$">
Header set Cache-Control "max-age=31536000"
</FilesMatch>