title: Displaying image stored in ostrio:files
body: <p>In ostrio:files docs used <code>findOne</code> function, that is not convinient in my case, I need <code>find()</code> with parameters to filter by user id and so on.
  I use common Meteor React approach from official tutorial as follows:</p>
  
  <pre class="lang-jsx prettyprint-override"><code>renderImages(){
      return this.props.images.map((image) =&gt; (
          &lt;Pic src={image.link()} /&gt;
      ));
  }
  
  render() {
  ...
      return (
          &lt;form&gt;
              &lt;FormGroup controlId="formControlsFile"&gt;
                  &lt;Media&gt;
                      {this.renderImages()}
                  &lt;/Media&gt;
  ...
              &lt;/FormGroup&gt;
          &lt;/form&gt;);
      }
  }
  
  export default createContainer(props =&gt; {
      Meteor.subscribe("files.images.all");
      return {
          images: Images.find({name: "1.jpeg"}).fetch(),
      }
  }, App);
  </code></pre>
  
  <p>Here is collection:</p>
  
  <pre class="lang-js prettyprint-override"><code>import { Meteor } from 'meteor/meteor';
  import { FilesCollection } from 'meteor/ostrio:files';
  
  const Images = new FilesCollection({
      collectionName: 'Images',
      allowClientCode: false, // Disallow remove files from Client
      onBeforeUpload(file) {
  ...
  });
  
  if (Meteor.isServer) {
      Meteor.publish('files.images.all', function () {
          return Images.find().fetch();
      });
  }
  
  export default Images;
  </code></pre>
  
  <p>and Pic element:</p>
  
  <pre class="lang-jsx prettyprint-override"><code>import React from 'react';
  import {createContainer} from 'meteor/react-meteor-data'
  
  class Pic extends React.Component {
      render() {
          return (
              &lt;img width={64} height={64} src={this.props.src} alt="Image"/&gt;
          );
      }
  }
  
  export default createContainer(props =&gt; {
      console.log("Image src: " + props.src);
      return {
          src: (props.src ? props.src : "no-image-64x64.jpg"),
      }
  }, Pic);
  </code></pre>
  
  <p>This code causes the following exception:</p>
  
  <pre class="lang-none prettyprint-override"><code>I20170727-13:46:02.470(3)? Exception from sub files.images.all id uXo24fBLqH8rsMiDy Error: Publish function returned an array of non-Cursors
  I20170727-13:46:02.472(3)?     at [object Object]._.extend._publishHandlerResult (packages/ddp-server/livedata_server.js:1098:20)
  I20170727-13:46:02.472(3)?     at [object Object]._.extend._runHandler (packages/ddp-server/livedata_server.js:1060:10)
  I20170727-13:46:02.473(3)?     at [object Object]._.extend._startSubscription (packages/ddp-server/livedata_server.js:859:9)
  I20170727-13:46:02.473(3)?     at [object Object]._.extend.protocol_handlers.sub (packages/ddp-server/livedata_server.js:625:12)
  I20170727-13:46:02.474(3)?     at packages/ddp-server/livedata_server.js:559:43
  </code></pre>