Rossko's guess was right It was anchor property problem. Here is the
code I am using to get the anchor.
function getImgAnchor(imgSrc){
var newImg = new Image();
newImg.src = imgSrc;
var x = newImg.width
var y = newImg.height;
var point = new google.maps.Point(x/2 , y/2);
alert(imgSrc + " : " + point);
return point;
}
Sometimes that var x and y are just 0, 0 even newImg.width and
newImg.height have different values e.g. (12, 12).
Anyway it is not a google maps issue rather than javascript issue.
Thanks Rossko for the perfect guess.
Regards,
Farooq