added initial support for pictures of circuits (thresholding, blurring). Still need training