Pass the preCxt and cxt to shapes

This allows doodles to be drawn directly to the main canvas when ghost
drawing is disabled