Create/upload modal issue

When switching between modals, something goes wrong with resetting the previous closed modal.

Steps to reproduce:

1. Upload some images.
2. When the images were uploaded successfully, create some new links.
3. After the links have been uploaded, try to upload a new image again. 

If this issue is reproduced correctly, the previous added images should still be visible in the modal screen, together with the visibility and library information.

Result:
![screen shot 2013-10-09 at 17 18 36](https://f.cloud.github.com/assets/2194396/1299208/aa8c5adc-30fe-11e3-9ea3-9e10ac3dad1c.png)

Expected:
![screen shot 2013-10-09 at 17 25 32](https://f.cloud.github.com/assets/2194396/1299270/761c1f98-30ff-11e3-9a12-a651d1e25875.png)