Added jpg test image, modified debug to use power-law and log transforms.