Registration with refid is added
Images handling is separated partially
Better text recognizing