added variable thickness smooth line and resource manager