Image caching

Enable caching of images using proper HTTP cache headers. Also, added gitignore