fixed renderRectangle and layerpainting bug