Adding the ability to rebuild only one image

This implements the feature I submitted on Issue #6. If you have any questions or need me to fix anything, please let me know.

This also fixes a small error where the ajax response would add a broken image (if the image doesn't exist). The fix I added just doesn't update the last image if it can't find the file.