wip: don't add array element before adding picture