fixed image renaming