Added image cache.

Added image cache, media model and improve web service calls