image delete adjusted (foreign key constraint)