Bad Behavior was also causing the problem for me. I disabled it and now the picture uploading is working fine.
Thanks everybody
I just fixed it. It looks like spammers took advantage of the security gaps in the last version of wordpress to install some code on my index.php. But it looks like it is working now. Thanks anyway!