add initial drawing code