The code so far...tested w/ yahoo and jpegs