Fixed upload images to server.