Add setIcon functionality