Using preprocessing as a tool in medical image detection