added RGB-distance plotting option