Sending data, bad jpeg

possible pointer problem