Update upload image function of web controller