added endpoint configuration (to use with fake dev tools). more options
when uploading images.