added staging of image file for reimaging.