passing optionalObject to getCanvasThenNext()