make resizing to contentSize for rendering optional