Don't add array element before adding picture