setting initial resolution from config.