Add TagImage API call

Same as #76 but with tests.