Manual talk:Hooks/UploadForm:BeforeProcessing

Is it possible to change image name after upload? For example, I want to upload image1.jpg (ignore warnings = 0), but file with this name already exists. I need change image name to image1_000.jpg where 000 - random number.

This what I have now. In $saveName file name what I need. But I dont know how change result name.