Fix non restore ImgUr as default image host by reset setings
Refactor code for reset to default settings in modules