How can I specify where an image is uploaded
In your site log in as adminstrator and go to 

'/admin/config/media/file-system' 


and you can find the place where you can define your path to save any uploaded files.

for Example your siteis example.com you have to access 

"**example.com//admin/config/media/file-system**"  as Drupal Administrator and you can change the path there. 

image URLs messing up 

possibly this will give you a answer