A spectroscopically calibrated prescription for extracting polycyclic aromatic hydrocarbon flux from JWST MIRI imaging