Multi delete and upload image function