added possibility to add scale resolutions for each layer