Red-light cameras, originally implemented in an attempt at increasing the safety of intersections, have been precisely the opposite: drivers are afraid of expensive citations and often brake suddenly as they approach camera-equipped intersections, so they cause rear-end accidents.
A. in an attempt at increasing the safety of intersections, have been precisely the opposite: drivers are afraid of expensive citations and often brake suddenly as they approach camera-equipped intersections, so they cause
B. while attempting to increase safety at intersections, have had a precisely opposite effect: drivers, who are afraid of expensive citations, often brake suddenly as they approach camera-equipped intersections, thus causing
C. in attempting to increase safety in intersections, have precisely had the opposite effect: drivers fear expensive citations, approach camera-equipped intersections, often brake suddenly, and cause
D. as attempts to increase intersections' safety, are precisely the opposite: afraid of expensive citations, drivers approach camera-equipped intersections and brake suddenly, thus causing
E. in an attempt to increase safety at intersections, have had precisely the opposite effect: fearing expensive citations, drivers approaching camera-equipped intersections often brake suddenly, causing
The explanation of answer choice C says that The construction "in attempting..." needs to refer to the subject of the main clause. In this case, that creates a nonsensical meaning: namely, that the cameras themselves were in the process of "attempting to increase safety."
The answer choice D and B have the same error, but I can understand such flaw in answer choice C. However, I cannot figure out why v-ing in a preposition can refer to subject, i.e Red-light cameras, and not refer to people who carry out such cameras. Is such interpretation always applied or just used in some specific cases? Please explain further.