fixed image fragments to add to database