Images are getting corrupted after the initial run of my application. On the 1st run the 3 sample images display on the screen and if I click an individual image it will load on the full browser. Any new images that are uploaded do the same. If I then stop my application and run it again the images are corrupted. They don't displa. Instead I see this:

If I click on one of the broken image icons I get this:

I'm also unable to open the images in any other application such as Photoshop.