Changed template preview logic to show not available image if preview image not given.