updated renderWidth, renderHeight & draw