upload image file and can use stageidx