And some optimizations
* Added an API endpoint to check the existence of the file * fix #2773: Now we can prevent users from posting the same images * bug fix