Polarization measurements with an imaging gamma-ray telescope