clean up image path code. Make OSD work with proper info.json path passed to openseadragon-rails