Fixed bugs to do with edge and overlaps methods still using old image setup.