Space in medieval painting and the forerunners of perspective