Refs #2876, cache mime type and image for URL custom graphics
(cherry picked from commit 49d5540b93346bff1655a000be08bd46df62ede8)