Fixed the preview image not showing