Fixed API products when save multiple images from the media library, closes #6792