function grab_image & mkdir favicon

please fell free to move this code