I've done it! I found out what you have to do

you have to put about 300 0's on the end! Here's some code that makes an icon with random black, white, or transparent pixels
sync on
numicons = 1
width = 32
height = 32
bitsperpixel = 1
numcolors = (2^bitsperpixel)
if numcolors = 256 then numcolors = 0
if file exist("Myicon.ico") then delete file "Myicon.ico"
open to write 1,"Myicon.ico"
rem 0: reserved
write word 1,0
rem 2: type
write word 1,1
rem 4: number of icons
write word 1,numicons
inc fs,6
`16xIcons bytes
for d = 1 to numicons
write byte 1,width
write byte 1,height
write byte 1,numcolors
rem 10: reserved
write byte 1,0
write word 1,1
write word 1,bitsperpixel
write long 1,40+((bitsperpixel*width*height)/4)
write long 1,((numicons*16)+6)
inc fs,16
next d
write long 1,40
write long 1,32
write long 1,64
write word 1,1
write word 1,bitsperpixel
write long 1,0
write long 1,0
write long 1,0
write long 1,0
write long 1,0
write long 1,0
inc fs,40
for d = 1 to (2^bitsperpixel)
write byte 1,(d-1)*255
write byte 1,(d-1)*255
write byte 1,(d-1)*255
write byte 1,0
inc fs,4
next d
for d = 1 to (width*height)/8
write byte 1,rnd(255)
inc fs
next d
fs# = fs
for d = 1 to 310
write byte 1,0
inc fs#
inc fs
next d
close file 1
I'm just editing it so that you can put an image in
There are three types of people, those that can count and those that can't.