Resizing a layer and its contents using the load() function