Added a similarImages class, updated some hashing methods