removed skimage dependency