update image api