fixed image rename bug