title: Reset croppie - a jQuery image cropping plugin
body: <p>I'm using the jQuery croppie plugin for for an application I'm working on and running into a problem.  I'm using the upload feature to allow the user to upload an image to be cropped.  Just in case the user selects an image they are not happy with, I want a way for them to remove the image and select a new one.</p>
  
  <p>It does not seem like there is a easy way to do this though.  The croppie documentation is very limited and I can only find 2 possible solutions.  Both of which I can not get to work:</p>
  
  <ol>
  <li><p>Call the <code>destroy()</code> function - unfortunately this removes all the markup that croppie adds to make the script work.  Once it is destroyed I do not see a way to reinitialize it.  </p></li>
  <li><p>Use the built in <code>bind</code> function to set the url attribute to a empty value - this was a suggestion on the croppie github page.  It does remove the image however it does not allow the user to select a new image.  The user can click the upload box and pick a image file but as soon as they click open the image is not placed into the cropping area.  It seems like the script stops working on the readFile function, but is not throwing any console errors. </p></li>
  </ol>
  
  <p>Here's the script I'm using right now, which allows you to select an image, remove the image, but it won't let you select a new image:</p>
  
  <p><a href="https://jsfiddle.net/austin350s10/y7yby06b/" rel="nofollow">https://jsfiddle.net/austin350s10/y7yby06b/</a></p>
  
  <p>If anyone has an idea how to get this to work in the way I intended I would be grateful!</p>