Photon-induced far-field and near-field electron microscopy