upload tmp image