initial image display code