rename uploaded image and overwrite image file if exists