Fix some paths for image displaying

I've tried this in my localserver, and it appears that some paths were incorectly configured.

I've tried with paths that looks like:

http://localhost/somedir/symfonyproject/web/

and

http://myproject.lo/app_dev.php/

and this changes fix the image displaying. Let me know if this is just an issue is happening to me or the PR is OK.