update image handler