Wrong content-type for /images/json remote api endpoint

Fixes #4121