fix #26 (show error, when upload script response is empty), fix #42 (add server side deletion hook), fix #44 (use figure instead of div to wrap uploaded image)