initial image processing script