Add support for .ico files

Based on https://gist.github.com/EJEHardenberg/8240859 by Ethan Joachim Eldridge