remove trailing slash that causes image to break