Fix the preview and use absolute image path