You should delete light area connected to image border before applyingimfill. By usingimclearborder function before applyingimfill, you can obtain the target image, like:
You can use imcrop to crop the image. The answer in the following link gives a detailed explanation on how to crop the image around the given centriod.
Best Answer