Refactored image-serving, added lots of support for browser caching to avoid db hit