Check if it is an RGB image. Channge the DISTANCE to 45 from 20