the problem exists in the storing of the image. on a windows platform (which is what i'm developing on) needs to:
$data = addslashes(fread(fopen($form_data, "rb"), filesize($form_data)));
instead of:
$data = addslashes(fread(fopen($form_data, "r"), filesize($form_data)));
extracted from php manual:
Note: The mode may contain the letter 'b'. This is useful only on systems which differentiate between binary and text files (i.e. Windows. It's useless on Unix). If not needed, this will be ignored.
thanks for your help though!