properly fix the cache_images issue (refs #578)