upload image and automatic update it