resolutionwrapper for merging layers of different sizes