Make the control creation more generic (Image processing tool)