Probing the envelopes of massive young stellar objects with diffraction limited mid-infrared imaging