fixes to api for image/video content-types