Reverting to old image switching script