Gamma-ray imaging with coded masks