Added pen thickness option to painter