# [NTG-context] Problem inserting image within MP

Thu Oct 10 16:02:15 CEST 2019

```On Thu, 10 Oct 2019, context at vivaldi.net wrote:

> Hello,
>
> this is a probably basic question, but the following code doesn't compile:
>
> ----
> \setupbackgrounds[page][background={Bkg}]
>
> \defineoverlay[Bkg][\useMPgraphic{Bkg}]
>
> \startuseMPgraphic{Bkg}
>  externalfigure "hacker.png";
> \stopuseMPgraphic
>
> \starttext
>  Ahoj
> \stoptext

Taco has already answered the question, but if you just want to insert the
image as a background, there is no need to do so via MP. The following
also works:

\setupexternalfigures[location={local,global,default}]
\setupbackgrounds[page][background={Bkg}]

\defineoverlay[Bkg][{\externalfigure[hacker.png][width=\overlaywidth,
height=\overlayheight]}]

\starttext
Ahoj
\stoptext