When resizing a layer to its natural width/height is would make sense for the maximum width/height to be determined by its container. Currently there aren't any containers, but if we had "frame" type layers, those would act as containers. Maybe it should be maxWidth and maxHeight props that are passed? We need to think about how to deal with the layer being positioned at an offset from 0,0.