I found the problem. In this (http://doc.arcgis.com/en/maps-for-sharepoint/arcgis-map-web-part/measure-print-and-query-related-too...) article it is mentioned to upload the image to extension library. But in XML the path is referring to layouts image library. Either we have to change the path in xml to refere extension library or we should copy the image to images library.