set caching headers for images