Map picture to pixels