Safe Output Feedback Motion Planning from Images via Learned Perception Modules and Contraction Theory