refactored settings and image path