Question: > 
> *No, not that thing in powerpoint*
> 
> 
> 

You will be given a string, and a 2D array of boolean values. The 2D array will represent a picture.

You will be creating art out of it.

Let me show you how.

The steps to art
================

First, you create a square which fits the 2d array, with the string.

Like if the string is 'PPCG', and the picture is 4x3, the square should be like this.

```
PPCG
PCGP
CGPP
GPPC

```

Now in the square, erase all characters which the corresponding boolean is 0, or the corresponding boolean doesn't exist.

Let me show you. If the 2D array is

```
1001
0110
1001

```

And the square is same to the above (above this one), the result should be like:

```
P  G
 CG 
C  P

```

Now output the result.

Test data is not made yet. Will add ASAP.
=========================================

Rules
=====

* General [code-golf](/questions/tagged/code-golf "show questions tagged 'code-golf'") rules apply, including loopholes.

Answer: 
[Python 2](https://docs.python.org/2/), ~~89~~ ~~81~~ ~~88~~ 86 bytes
=====================================================================

```python
i=input();n=k=len(i)-2
print i
exec'print i[~k]+" "*n+i[k];k-=1;'*n
if~k:print i[::-1]

```

[Try it online!](https://tio.run/##NcqxCoAgEADQ3a@QFktx0FHxS8IpjI6LS8OgFn/dlhofvPzU7SDbOwSgfNVx8hQw7IlGmLRl@QSqHFi60yI@zA2jGvggScGM0aMOxgtJDNaG7k/OaRN7F6WIFw "Python 2 – Try It Online")
[Python 2](https://docs.python.org/2/), ~~99~~ 88 bytes
=======================================================

*-4 bytes thanks to musicman523.*

```python
lambda s:s[1:]and[s]+[s[i]+' '*(len(s)-2)+s[~i]for i in range(1,len(s)-1)]+[s[::-1]]or s

```

[Try it online!](https://tio.run/##LcuxDsIgEIDhVzknwLYmdCRx9w060BswgJ7Bo@G6uPjqaIzz//3ba79Xnns@r72E5zUGECfeOgwcveDgxRMOCtRRl8RazDSbQfybMNcGBMTQAt@StuO/W/O7nJss4tdI3xrxDmpldXpUYp21uqRS6ghLbSUelDH9Aw "Python 2 – Try It Online")

Returns a list of strings.