Add image cache for pdf docs