update image trim