Constructing a neural sketch from visual images