added the initial image handling