Fixed bug in older skimage versions.