At f/22, diffraction is going to be very bad. You want to work at larger apertures and live with the narrow depth of field. The only real way to beat depth of field is to go digital and do z-stacking.