Got rid of 'render.resize' method and made other corrections from previous code review