update image directive