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

Also adds leading slash to FileSystem IOHandler URI

Makes it work like the Legacy one so that API integration
tests actually behaves (and fails) in the same way.

This change makes the integration tests fail without the
fix in this commit.
Merge branch 'fix-EZP-21522-rest_publish_images'