small modification to delete last grabbed image