How to get location(x,y) center of image ?