update image resource