Removing superfluous slash in image path