1)index the picture to 256 colours
2)make a copy of the file
3)in the copied file, change the last two colours in the colour map to 255,0,255 (ff00ff) and 0,255,0 (00ff00)
4)copy and paste the original picture to the copied file
5)save as filename.pcx