Update image api