Convert LayoutContext.image_cache from @mut to MutexArc

LocalImageCache isn't Freeze so we have to use unsafe_access,
which exists for MutexArc and not RWArc.