Image Understanding System for Printed Chemical Structures