Generalized icon resizing script to an applying theme script