safe method added, a bug fixed
IThresholder modified now it works with BufferedImage