rename 'our $i; s/_.*/sprintf("_%03d.png", $i++)/e' *.png
This command assumes the file name followes something like image_001.png or IMG_001.png etc...
It will then change the numbers at the end to start from 001 to however many images there are without skipping a number