Fix EZP-21522: wrong usage of image uri/id

Fixes https://jira.ez.no/browse/EZP-21522 by triming the / added to the URI in a recent change (https://jira.ez.no/browse/EZP-20948).