Remove slash from image path