Consider image expiry when merging images

If the image key has a corresponding Image, then use the expiry details to remove images which are no longer available.