title: How to draw multiple shapes using Matlab vision toolbox and step function?
body: <p>I'm trying to insert 2 shapes (circle and rectangle) to an image using these functions. But I'm unable to do that. 
  Here's my code</p>
  
  <pre><code>J = step(shapeInserter, I, bbox); %bbox is rectangle which is already defined
  J = step(shapeInserter, I, circle); %circle is circle which is already defined
  imwrite(J,'image.jpg','jpg'); % it draws only the circle
  </code></pre>
  
  <p>I have a long way which is to save the rectange image then load again to draw the circle and resave. Which i wish to avoid as it's really time consuming.</p>
  
  <p>I'm trying to do something like this (similar to the plotting graph function)</p>
  
  <pre><code>hold on
  %draw circle
  %draw rectangle
  hold off
  imwrite(J,'image.jpg','jpg');
  </code></pre>
  
  <p>Please advise, thanks</p>