Fix shapes with borders to work with pen styles.