r9949 fixed messtest and imgtool, thanks Sr. Ronco!