Amended persist functionality

Can now persist failed images or all images, as desired.