Rebuild and image uploading abaility with AJAX