[core] add config to disable images size loading