fixed issue where I was using linesize instead of linewidth