Turn off the headers for the rendered window I am using python script to render the image. I only want to show the IMAGE_EDITOR area( I think the rendered image gets shown in IMAGE_EDITOR area). It should show only the rendered image.

So basically I am trying to do 2 things here


Render the image
Show only the area with the image.


I hope I am clear on this. I tried to render image by -

for area in bpy.context.screen.areas:
    if area.type == 'INFO':
        override = bpy.context.copy()
        override['area'] = area
        bpy.ops.render.render(override, use_viewport=True)
        break


But it doesn't work.

EDIT: So as iKlsR told, I used a differnt display mode. I am able to get the whole rendered image using 

bpy.data.scenes["Scene"].render.display_mode = 'FULL'
for area in bpy.context.screen.areas:
    if area.type == 'INFO':
        override = bpy.context.copy()
        override['area'] = area
        bpy.ops.render.view_show('INVOKE_DEFAULT')
        bpy.ops.render.render(override, use_viewport=True)
        break


However, I need just the rendered area. Not the headers . How can I make them turn off?
If I understand what you are asking, you can get the same results by choosing New Window or Fullscreen in the Render panel under the Display drop-down list.

Choosing New Window will give you a tad bit more screen estate by not having the Info header. Hover over the list with the current selection for the python equivalent if you want to use it in a script.