Fix local image display in preview