added lastImageId