Add helper functions for image renaming