Pure java, anti aliasing insensitive, image comparison (for java 7 upgrade)