refactor picture paths and names, encode/decode images for comparison