Added pixel to distance formula