A Jørgensen–Thurston theorem for homomorphisms