added option to remove record that is not an image