modify image reference