finish upload image promise