fixing bad uri on images