adds conversion (if necessary) of the images for the calculation of disparity