Yes martin i was using on the page anyways i got the solution:
The below code work on the layout of master page.
<script runat="server">
protected override void OnPreRender(EventArgs e)
{
string pName= CMSContext.CurrentPageInfo.DocumentName;
if(pName== "About")
{
//About us image here
}
else if(pName=="News and Events")
{
// News Image here
}
......and so on
</script>