Baryon magnetic moments in a quark model