added a useful thing to the imageconverter class