Add external cache/hidden.img handling