Override equals() so that it takes lastModified into account to allow for the updating of images. This is for bug 42385.