There is a new addition in the ECT Admin -> Database Utility -> Check database integrity to check for entries in the productimages table that don't match any of the products. It's well worth running this from time to time as it can weed out database entries that could slow your database down or produce erroneous results for your customers.