fixes for sketchPath() when embedding
add canDraw() method for embedding