finish the upload image to gallery