Shadows and photon rings of regular black holes and geonic horizonless compact objects