Bath engineering of a fluorescing artificial atom with a photonic crystal