update upload image index script for file rename