prototype version with grayscale phashes