Removed unused code
Moved download_icon logic to OCaml