Extensive hacking of PicFlyer to get it closer to compiling.