Image pre-processing function to remove white spaces on all sides of images
bw2 = ann_imgcrop(bw)
Sub-image with white spaces
Output sub-images without white spaces
This function would remove the white spaces on all sides of an image, to product better features extraction for neural network