# Python 2 + PIL, 320

<!-- language-all: lang-py -->

Reads the name of the image file from stdin.

    from PIL import ImageDraw as D,Image as I
    i=I.open(raw_input())
    C=A,B=i.size
    i,j=i.resize((int(.75*A),B/2)),I.new('RGBA',C)
    W,H=i.size
    for a,b in[(0,0),(0,H),(W,0),(W,H)]:j.paste(i,(a,b,a+W,b+H))
    p,d=[(0,0),(A/4,0),(0,B/2),(A/4,B),(0,B)],lambda p:D.Draw(j).polygon(p,fill=(0,)*4)
    d(p)
    d([(A-x,B-y)for x,y in p])
    j.show()