Revert "#10206 add pos_horz parameter to addIcon method"

This reverts commit 6999de57d7fa5760063405f74a88857464276f44.