Sub-diffraction imaging with compensating bilayers