image library fix.  database site_id/deleted validation enhancements