working background example, slow performance on large images. memmory usage 200mb on background.png