implemented server side picture caching