Added helper function to get the delete images