checking border set of image while selecting an image right side.